<?php
// Info
const I01 = "I01";
// Error
const E01 = "E01";
const E02 = "E02";
const E03 = "E03";
const E04 = "E04";
const E05 = "E05";
const E06 = "E06";
const E07 = "E07";
const E08 = "E08";
const E09 = "E09";
const E10 = "E10";
const E11 = "E11";
const E12 = "E12";
const E13 = "E13";
const E14 = "E14";
const E15 = "E15";
const E16 = "E16";
const E17 = "E17";
const E18 = "E18";
const E19 = "E19";
const E20 = "E20";
// ControlName
const A00 = "control";
const A01 = "list";
const A02 = "get-power";
const A03 = "set-power";
const A04 = "get-info";
const A05 = "remake";
const A06 = "status";
const A07 = "count";
const A08 = "set-token";
const A09 = "init";
const A10 = "set-path";
const A11 = "set-portPrefix";
const A12 = "get-portPrefix";
const A13 = "get-osList";
const A14 = "get-path";
const A99 = "debug";
// Param
const P01 = "id";
const P02 = "status";
const P03 = "name";
const P04 = "path";
const P05 = "username";
const P06 = "password";
const P07 = "value";
// String
const S01 = "字段不能为空";
const S02 = "config.json";
const S03 = A07;//count
const S99 = [
    "host"=>"127.0.0.1",
    "port"=>"8697",
    "token"=>"AUTH_CODE",
    "prefix"=>"IURT",
    "vmPath"=>"/path/to/vm",
    "diskPath"=>"/path/to/disk",
    "portPrefix"=>""
];
// Request
const R01 = "curl --header 'Authorization: Basic %s' 'http://%s:%s/api/vms' -X GET --header 'Accept: application/vnd.vmware.vmw.rest-v1+json'";
const R02 = "curl --header 'Authorization: Basic %s' 'http://%s:%s/api/vms/%s/power' -X GET --header 'Accept: application/vnd.vmware.vmw.rest-v1+json' ";
const R03 = "curl --header 'Authorization: Basic %s' 'http://%s:%s/api/vms/%s/power' -X PUT --header 'Content-Type: application/vnd.vmware.vmw.rest-v1+json' --header 'Accept: application/vnd.vmware.vmw.rest-v1+json' -d @- <<REQUEST_BODY\n%s\nREQUEST_BODY";
const R04 = "curl --header 'Authorization: Basic %s' 'http://%s:%s/api/vms/%s/restrictions' -X GET --header 'Accept: application/vnd.vmware.vmw.rest-v1+json'";

